﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AllBlogs.aspx.cs" Inherits="CursoUNICEUB.AllBlogs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <center>
    <asp:DropDownList ID="ddlRSS" runat="server" Width="169px" AppendDataBoundItems="true" 
            DataSourceID="BancoBlogs" DataTextField="Nome" DataValueField="URL" 
            AutoPostBack="True" onselectedindexchanged="ddlRSS_SelectedIndexChanged">
            <asp:ListItem Text="Selecione" Value="0" Selected="True" />
          </asp:DropDownList>
        <asp:LinqDataSource ID="BancoBlogs" runat="server" 
            ContextTypeName="FastDATA.DCCursoDataContext" EntityTypeName="" 
            TableName="DEBlogs" Where="Ativo == @Ativo">
            <WhereParameters>
                <asp:Parameter DefaultValue="true" Name="Ativo" Type="Boolean" />
            </WhereParameters>
        </asp:LinqDataSource>
    </center>
    <hr />
    <asp:DataList ID="DataList1" runat="server">
        <ItemTemplate>
            <div style="width: 90%">
                <h1 style="color: Gray">
                    <%# DataBinder.Eval(Container.DataItem, "title") %></h1>
                <hr />
                <small>
                    <%# DataBinder.Eval(Container.DataItem, "date") %></small>
                <br />
                <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "description") %>'></asp:Label>
                <br />
                <hr style="height: 5px; color: #0000FF" />
            </div>
        </ItemTemplate>
    </asp:DataList>
    <br />
    <asp:HyperLink runat="server" Text="Veja Todos." Font-Size="XX-Large" Visible="false"
        ID="hlkVejaMais" />
</asp:Content>
